<?php
/**
 * @copyright: ©2024 永州微聚 商网络科技有限公司
 * @link: https://www.weijuYunke.com
 */
namespace app\admin\model;

use app\common\model\TimeModel;

class CouponOrder extends TimeModel
{

    protected $name = "coupon_order";

    protected $deleteTime = 'delete_time';

    protected $type = [
        'create_time' => 'timestamp:Y-m-d H:i',

    ];


    public function platformInfo()
    {
        return $this->belongsTo('app\admin\model\Platform', 'platform_id', 'id');
    }

    public function  couponInfo()
    {
        return $this->belongsTo('app\admin\model\Coupon', 'coupon_id', 'id');
    }


    public function  userInfo()
    {
        return $this->belongsTo('app\admin\model\User', 'uid', 'id');
    }





}